<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>

    </ul>
    <button>加载数据</button>
</body>
<script src="../jquery-3.6.0.min.js"></script>
<script type="module">

    import ajax from "./03request.js";    

    $("button").on("click", function () {
        ajax($, "content/queryList",{t_cat_plant_fk:405,rows: 5}).then(res => {

            console.log(res);

            let $ul = $("ul");

            res.result_data.forEach(v => {
                let li = document.createElement("li");
                $(li).html(`<span>姓名：${v.title}</span>`);

                $ul.append(li);
            })
            
        })
    });



</script>

</html>